<style type="text/css">
    .sm-st {
        background: #fff;
        padding: 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        margin-bottom: 20px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
    }

    .sm-st-icon {
        width: 60px;
        height: 60px;
        display: inline-block;
        line-height: 60px;
        text-align: center;
        font-size: 30px;
        background: #eee;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        float: left;
        margin-right: 10px;
        color: #fff;
    }

    .sm-st-info {
        font-size: 12px;
        padding-top: 2px;
    }

    .sm-st-info span {
        display: block;
        font-size: 24px;
        font-weight: 600;
    }

    .orange {
        background: #fa8564 !important;
    }

    .tar {
        background: #45cf95 !important;
    }

    .sm-st .green {
        background: #86ba41 !important;
    }

    .pink {
        background: #AC75F0 !important;
    }

    .yellow-b {
        background: #fdd752 !important;
    }

    .stat-elem {

        background-color: #fff;
        padding: 18px;
        border-radius: 40px;

    }

    .stat-info {
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        font-style: italic;
    }

    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .st-red {
        background-color: #F05050;
    }

    .st-green {
        background-color: #27C24C;
    }

    .st-violet {
        background-color: #7266ba;
    }

    .st-blue {
        background-color: #23b7e5;
    }

    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float: left;
    }

    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        margin-right: 10px;
    }

    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }

    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat.lg .value {
        font-size: 26px;
        line-height: 28px;
    }

    .stat.lg .name {
        font-size: 16px;
    }

    .stat-col .progress {
        height: 2px;
    }

    .stat-col .progress-bar {
        line-height: 2px;
        height: 2px;
    }

    .item {
        padding: 30px 0;
    }
</style>

<div class="panel panel-default panel-intro">

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">

                <div class="row">
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>
                            <div class="sm-st-info">
                                <span>{$user_total}</span>
                                {:__('Total user')}
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-violet"><i class="fa fa-book"></i></span>
                            <div class="sm-st-info">
                                <span>{$active_user_total}</span>
                                {:__('Total view')}
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-blue"><i class="fa fa-shopping-bag"></i></span>
                            <div class="sm-st-info">
                                <span>{$reg_user_count}</span>
                                {:__('Total register user')}
                            </div>
                        </div>
                    </div>

                    {eq name="org_cate_id" value="0"}
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-green"><i class="fa fa-cny"></i></span>
                            <div class="sm-st-info">
                                <span>{$reg_org_num}</span>
                                {:__('Reg ord num')}
                            </div>
                        </div>
                    </div>
                    {else/}
                    <div class="col-sm-3 col-xs-6">
                        <div class="sm-st clearfix">
                            <span class="sm-st-icon st-green"><i class="fa fa-cny"></i></span>
                            <div class="sm-st-info">
                                <span>{$sms_num}</span>
                                {:__('Sms count')}
                            </div>
                        </div>
                    </div>
                    {/eq}
                </div>

                <div class="row">
                    <div class="col-lg-12">
                        <form class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" novalidate="" method="GET" action="">
                            <fieldset>
                                <div class="row">

                                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                                        <label for="starttime" class="control-label col-xs-4">开始时间</label>
                                        <div class="col-xs-8">
                                            <input data-date-default-date="{$start_time_string}" data-date-format=" YYYY-MM-DD" type="text" class="form-control datetimepicker" name="starttime" value="" placeholder="添加时间" id="starttime" >
                                        </div>
                                    </div>
                                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                                        <label for="endtime" class="control-label col-xs-4">结束时间</label>
                                        <div class="col-xs-8">
                                            <input type="hidden" class="form-control operate" name="endtime-operate" data-name="endtime" value="RANGE" readonly="">
                                            <input data-date-default-date="{$end_time_string}" data-date-format=" YYYY-MM-DD" type="text" class="form-control datetimepicker" name="endtime" value="" placeholder="更新时间" id="endtime" >
                                        </div>
                                    </div>

                                    <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                                        <div class="col-sm-8 col-xs-offset-4">
                                            <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                        </form>
                    </div>
                </div>

                <div class="row">
                    <div class="col-lg-12">
                        <div id="echarts" style="height:300px;width:100%;"></div>
                    </div>

                </div>

                <div class="row" style="margin-top:15px;">

                    <div class="col-lg-12">
                    </div>
                    <a href="{:url('admin/order/order');}">
                        <div class="col-xs-6 col-md-3">
                            <div class="panel bg-blue">
                                <div class="panel-body">
                                    <div class="panel-title">
                                        <span class="label label-success pull-right">{:__('Real time')}</span>
                                        <h5>{:__('Order num')}</h5>
                                    </div>
                                    <div class="panel-content">
                                        <h1 class="no-margins">{$order_num}</h1>
                                        <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> {$order_num}</div>
                                        <small>{:__('Order num tips')}</small>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </a>
                    <a href="{:url('admin/order/liveorder','ref=addtabs');}">
                        <div class="col-xs-6 col-md-3">
                            <div class="panel bg-aqua-gradient">
                                <div class="panel-body">
                                    <div class="ibox-title">
                                        <span class="label label-info pull-right">{:__('Real time')}</span>
                                        <h5>{:__('Chat order num')}</h5>
                                    </div>
                                    <div class="ibox-content">
                                        <h1 class="no-margins">{$chat_order_num}</h1>
                                        <div class="stat-percent font-bold text-gray"><i class="fa fa-modx"></i> {$chat_order_num}</div>
                                        <small>{:__('Chat order num tips')}</small>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </a>
                    <div class="col-xs-6 col-md-3">
                        <div class="panel bg-purple-gradient">
                            <div class="panel-body">
                                <div class="ibox-title">
                                    <span class="label label-primary pull-right">{:__('Real time')}</span>
                                    <h5>{:__('Article count')}</h5>
                                </div>
                                <div class="ibox-content">

                                    <div class="row">
                                        <div class="col-md-6">
                                            <h1 class="no-margins">1234</h1>
                                            <div class="font-bold"><i class="fa fa-commenting"></i>
                                                <small>{:__('Comment count')}</small>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <h1 class="no-margins">6754</h1>
                                            <div class="font-bold"><i class="fa fa-heart"></i>
                                                <small>{:__('Like count')}</small>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-6 col-md-3">
                        <div class="panel bg-green-gradient">
                            <div class="panel-body">
                                <div class="ibox-title">
                                    <span class="label label-primary pull-right">{:__('Real time')}</span>
                                    <h5>{:__('News count')}</h5>
                                </div>
                                <div class="ibox-content">

                                    <div class="row">
                                        <div class="col-md-6">
                                            <h1 class="no-margins">5302</h1>
                                            <div class="font-bold"><i class="fa fa-commenting"></i>
                                                <small>{:__('Comment count')}</small>
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <h1 class="no-margins">8205</h1>
                                            <div class="font-bold"><i class="fa fa-user"></i>
                                                <small>{:__('Like count')}</small>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<script>
    var Orderdata = {
        user_content_time_list: {:json_encode(array_values($user_content_time_list))},
    active_visitor_user_count_list: {:json_encode(array_values($active_visitor_user_count_list))},
    active_reg_user_count_list: {:json_encode(array_values($active_reg_user_count_list))},
    active_user_count_list: {:json_encode(array_values($active_user_count_list))},
    };


</script>